using HuiLian.Common.Input;
using HuiLian.Service.Platform.Repairledget.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace HuiLian.Service.Platform.Repairledget
{
    /// <summary>
    /// 修漏作业记录接口
    /// </summary>
    public interface IRepairledgetService
    {
        /// <summary>
        /// 获取修漏作业记录信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);

        /// <summary>
        /// 查询修漏作业记录信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<RepairledgetEntity> input);

        /// <summary>
        /// 添加修漏作业记录信息
        /// </summary>
        /// <param name="input">修漏作业记录信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(RepairledgetAddInput input);

        /// <summary>
        /// 更新修漏作业记录信息
        /// </summary>
        /// <param name="input">修漏作业记录信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(RepairledgetUpdateInput input);

        /// <summary>
        /// 删除修漏作业记录信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除修漏作业记录信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);

        /// <summary>
        /// 添加列表
        /// </summary>
        /// <param name="repairledgets"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddListAsync(List<RepairledgetEntity> repairledgets);

        /// <summary>
        /// 数据匹配
        /// </summary>
        /// <returns></returns>
        Task<IResponseOutput> DataPiPei();

        /// <summary>
        /// 更新管线的维修次数
        /// </summary>
        /// <returns></returns>
        Task<IResponseOutput> UpdateCount();

        /// <summary>
        /// 更新普查年份
        /// </summary>
        /// <returns></returns>
        Task<IResponseOutput> UpdatePuChaYear();
    }
}
